/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Frontera;

import control.ControlCliente;
import javax.swing.SwingWorker;

/**
 *
 * @author Juan
 */
public class TrabajadorCargarClientes extends SwingWorker<String[],Void> {
    
    ControlCliente controlCliente;

    public TrabajadorCargarClientes(ControlCliente controlCliente) {
        this.controlCliente = controlCliente;
    }

    @Override
    protected String[] doInBackground() throws Exception {
        return controlCliente.crearListaNombres();
    }
    
}
